import $axios from "@/network";

/**
 * 应用中心
 * @returns {*}
 */


// 详情信息
export const application = (id) => {
    return $axios({
        method: 'POST',
        url: '/case/findByid',
        params: {
            "id": id,
        }
    })
}
//应用列表
export const applist = (caseName, caseType, startDate, stopDate) => {
    return $axios({
        method: 'POST',
        url: '/case/findByCase',
        params: {
            "caseName": caseName,
            "caseType": caseType,
            "startDate": startDate,
            "stopDate": stopDate,
        }
    })
}

// 新增
// export const appinquireAdd = (province, caseName, department, caseType, ipAddress, crux, introduce, casePicture, userName, company, address, phone, email) => {
//     return $axios({
//         method: 'POST',
//         url: '/case/addCase',
//         headers: {
//             "Content-Type": "multipart/form-data",
//         },
//         params: {
//             "province": province,
//             "caseName": caseName,
//             "department": department,
//             "caseType": caseType,
//             "ipAddress": ipAddress,
//             "crux": crux,
//             "introduce": introduce,
//             "casePicture": casePicture,
//             "userName": userName,
//             "company": company,
//             "address": address,
//             "phone": phone,
//             "email": email
//         }
//     })
// }

export const appinquireAdd = (param) => {
    return $axios({
        method: 'POST',
        url: '/case/addCase',
        data: param
    })
}